package com.Entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "community", catalog = "monitor")
public class Community implements java.io.Serializable{

	private Integer CommunityHosID;
	private String CommunityHosName;
	private String CommunityDesc;
	private Integer Status;
	
	public Community(){
		
	}
	
	public Community(Integer CommunityHosID,String CommunityHosName,String CommunityDesc,Integer Status) {
		this.CommunityHosID=CommunityHosID;
		this.CommunityHosName=CommunityHosName;
		this.CommunityDesc=CommunityDesc;
		this.Status=Status;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "CommunityHosID", unique = true, nullable = false)
	public Integer getCommunityHosID() {
		return CommunityHosID;
	}

	public void setCommunityHosID(Integer communityHosID) {
		CommunityHosID = communityHosID;
	}

	@Column(name = "CommunityHosName")
	public String getCommunityHosName() {
		return CommunityHosName;
	}

	public void setCommunityHosName(String communityHosName) {
		CommunityHosName = communityHosName;
	}

	@Column(name = "CommunityDesc")
	public String getCommunityDesc() {
		return CommunityDesc;
	}

	public void setCommunityDesc(String communityDesc) {
		CommunityDesc = communityDesc;
	}

	@Column(name = "Status" ,length = 10)
	public Integer getStatus() {
		return Status;
	}

	public void setStatus(Integer status) {
		Status = status;
	}

}
